
import axios from "./ajax";
//用户列表
export function lie() {
  return axios({
    method: 'get',
    url: "/login/findAll",
  })
}

// 获取验证码
export function verify(data) {
  return axios({
    method: 'post',
    url: "/login/sendsms",
    params: data
  })
}
// 登录
export function login(data) {
  return axios({
    method: 'post',
    url: "/login/login",
    params: data
  })
}
// 点击注册
export function zhu(data) {
  return axios({
    method: 'post',
    url: "/login/register",
    params:data
  })
}
// 失去焦点判断是否有该手机号
export function zhua(data) {
  return axios({
    method: 'post',
    url: "/login/findByPhonenumber",
    params:data
  })
}
// 更改密码
export function wpa(data) {
  return axios({
    method: 'post',
    url: "/login/update",
    params:data
  })
}